aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cassettes/test_media_post[False].yaml')
-rw-r--r--tests/cassettes/test_media_post[False].yaml61
1 files changed, 31 insertions, 30 deletions
diff --git a/tests/cassettes/test_media_post[False].yaml b/tests/cassettes/test_media_post[False].yaml
index c8bff3c..883bb32 100644
--- a/tests/cassettes/test_media_post[False].yaml
+++ b/tests/cassettes/test_media_post[False].yaml
@@ -1,11 +1,11 @@
1interactions: 1interactions:
2- request: 2- request:
3 body: !!binary | 3 body: !!binary |
4 LS03MmY5NDMxODgxNTU0YWIyOGMwYjMzNTE3ZWVkZjg5Nw0KQ29udGVudC1EaXNwb3NpdGlvbjog 4 LS1jMGVmMTE3MWEyZGU0ZWRhYjNkMTRhNjkxN2M4ZjI4MQ0KQ29udGVudC1EaXNwb3NpdGlvbjog
5 Zm9ybS1kYXRhOyBuYW1lPSJkZXNjcmlwdGlvbiINCg0KSm9obiBMZW5ub24gZG9pbmcgYSBmdW5u 5 Zm9ybS1kYXRhOyBuYW1lPSJkZXNjcmlwdGlvbiINCg0KSm9obiBMZW5ub24gZG9pbmcgYSBmdW5u
6 eSB3YWxrDQotLTcyZjk0MzE4ODE1NTRhYjI4YzBiMzM1MTdlZWRmODk3DQpDb250ZW50LURpc3Bv 6 eSB3YWxrDQotLWMwZWYxMTcxYTJkZTRlZGFiM2QxNGE2OTE3YzhmMjgxDQpDb250ZW50LURpc3Bv
7 c2l0aW9uOiBmb3JtLWRhdGE7IG5hbWU9ImZpbGUiOyBmaWxlbmFtZT0ibWFzdG9kb25weXVwbG9h 7 c2l0aW9uOiBmb3JtLWRhdGE7IG5hbWU9ImZpbGUiOyBmaWxlbmFtZT0ibWFzdG9kb25weXVwbG9h
8 ZF8xNTExODIxOTg2LjE1NDU1ODdfRzJTTUhPQUFPMC5qcGUiDQpDb250ZW50LVR5cGU6IGltYWdl 8 ZF8xNTI0MDgxMjQwLjA0NTQ5OTZfQlhBSFo4WFJSNC5qcG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MTdlZWRm 944 KsZOMGf1pUqBjT3G6OOjnm7O9KlSoP/ZDQotLWMwZWYxMTcxYTJkZTRlZGFiM2QxNGE2OTE3Yzhm
945 ODk3LS0NCg== 945 MjgxLS0NCg==
946 headers: 946 headers:
947 Accept: ['*/*'] 947 Accept: ['*/*']
948 Accept-Encoding: ['gzip, deflate'] 948 Accept-Encoding: ['gzip, deflate']
949 Authorization: [Bearer __MASTODON_PY_TEST_TOKEN] 949 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
950 Connection: [keep-alive] 950 Connection: [keep-alive]
951 Content-Length: ['53644'] 951 Content-Length: ['53644']
952 Content-Type: [multipart/form-data; boundary=72f9431881554ab28c0b33517eedf897] 952 Content-Type: [multipart/form-data; boundary=c0ef1171a2de4edab3d14a6917c8f281]
953 User-Agent: [python-requests/2.18.4] 953 User-Agent: [python-requests/2.9.1]
954 method: POST 954 method: POST
955 uri: http://localhost:3000/api/v1/media 955 uri: http://localhost:3000/api/v1/media
956 response: 956 response:
957 body: {string: '{"id":"13","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/013/original/c9f74b7858e3700e.jpe","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/013/small/c9f74b7858e3700e.jpe","remote_url":null,"text_url":"http://localhost:3000/media/5lQdMadbSY-Su5wJVLY","meta":{"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John 957 body: {string: '{"id":"40","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/040/original/a1040ba5ad3e3e5e.jpg","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/040/small/a1040ba5ad3e3e5e.jpg","remote_url":null,"text_url":"http://localhost:3000/media/vnBo7WXeJQ1Aulad8N0","meta":{"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John
958 Lennon doing a funny walk"}'} 958 Lennon doing a funny walk"}'}
959 headers: 959 headers:
960 Cache-Control: ['max-age=0, private, must-revalidate'] 960 Cache-Control: ['max-age=0, private, must-revalidate']
961 Content-Type: [application/json; charset=utf-8] 961 Content-Type: [application/json; charset=utf-8]
962 ETag: [W/"d5e3757c87b3fe9ee4292d0148d230ca"] 962 ETag: [W/"5078f551e450b25a8badc1f597790c4b"]
963 Transfer-Encoding: [chunked] 963 Transfer-Encoding: [chunked]
964 Vary: ['Accept-Encoding, Origin'] 964 Vary: ['Accept-Encoding, Origin']
965 X-Content-Type-Options: [nosniff] 965 X-Content-Type-Options: [nosniff]
966 X-Frame-Options: [SAMEORIGIN] 966 X-Frame-Options: [SAMEORIGIN]
967 X-Request-Id: [038cd34a-803a-4000-8c46-3aeee138ee32] 967 X-Request-Id: [9a8a0645-8ecd-4d55-8386-5c35d6bb14b3]
968 X-Runtime: ['0.176521'] 968 X-Runtime: ['0.376832']
969 X-XSS-Protection: [1; mode=block] 969 X-XSS-Protection: [1; mode=block]
970 content-length: ['505'] 970 content-length: ['505']
971 status: {code: 200, message: OK} 971 status: {code: 200, message: OK}
972- request: 972- request:
973 body: visibility=&status=LOL+check+this+out&media_ids%5B%5D=13 973 body: status=LOL+check+this+out&media_ids%5B%5D=40
974 headers: 974 headers:
975 Accept: ['*/*'] 975 Accept: ['*/*']
976 Accept-Encoding: ['gzip, deflate'] 976 Accept-Encoding: ['gzip, deflate']
977 Authorization: [Bearer __MASTODON_PY_TEST_TOKEN] 977 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
978 Connection: [keep-alive] 978 Connection: [keep-alive]
979 Content-Length: ['56'] 979 Content-Length: ['44']
980 Content-Type: [application/x-www-form-urlencoded] 980 Content-Type: [application/x-www-form-urlencoded]
981 User-Agent: [python-requests/2.18.4] 981 User-Agent: [python-requests/2.9.1]
982 method: POST 982 method: POST
983 uri: http://localhost:3000/api/v1/statuses 983 uri: http://localhost:3000/api/v1/statuses
984 response: 984 response:
985 body: {string: '{"id":"99078765698573565","created_at":"2017-11-27T22:33:06.375Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/admin/statuses/99078765698573565","content":"\u003cp\u003eLOL 985 body: {string: '{"id":"99882188178375346","created_at":"2018-04-18T19:54:00.537Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":false,"spoiler_text":"","visibility":"public","language":"en","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99882188178375346","content":"\u003cp\u003eLOL
986 check this out\u003c/p\u003e","url":"http://localhost:3000/@admin/99078765698573565","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py 986 check this out\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882188178375346","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
987 test suite","website":null},"account":{"id":"1","username":"admin","acct":"admin","display_name":"codltest","locked":false,"created_at":"2017-07-01T17:09:15.621Z","note":"\u003cp\u003ehello 987 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
988 :)\u003c/p\u003e","url":"http://localhost:3000/@admin","avatar":"http://localhost:3000/system/accounts/avatars/000/000/001/original/99b4c443463de195.png","avatar_static":"http://localhost:3000/system/accounts/avatars/000/000/001/original/99b4c443463de195.png","header":"http://localhost:3000/headers/original/missing.png","header_static":"http://localhost:3000/headers/original/missing.png","followers_count":1,"following_count":0,"statuses_count":47},"media_attachments":[{"id":"13","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/013/original/c9f74b7858e3700e.jpe","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/013/small/c9f74b7858e3700e.jpe","remote_url":null,"text_url":"http://localhost:3000/media/5lQdMadbSY-Su5wJVLY","meta":{"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John 988 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
989 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","followers_count":0,"following_count":0,"statuses_count":21},"media_attachments":[{"id":"40","type":"image","url":"http://localhost:3000/system/media_attachments/files/000/000/040/original/a1040ba5ad3e3e5e.jpg","preview_url":"http://localhost:3000/system/media_attachments/files/000/000/040/small/a1040ba5ad3e3e5e.jpg","remote_url":null,"text_url":"http://localhost:3000/media/vnBo7WXeJQ1Aulad8N0","meta":{"original":{"width":600,"height":600,"size":"600x600","aspect":1.0},"small":{"width":400,"height":400,"size":"400x400","aspect":1.0}},"description":"John
989 Lennon doing a funny walk"}],"mentions":[],"tags":[],"emojis":[]}'} 990 Lennon doing a funny walk"}],"mentions":[],"tags":[],"emojis":[]}'}
990 headers: 991 headers:
991 Cache-Control: ['max-age=0, private, must-revalidate'] 992 Cache-Control: ['max-age=0, private, must-revalidate']
992 Content-Type: [application/json; charset=utf-8] 993 Content-Type: [application/json; charset=utf-8]
993 ETag: [W/"2634fb83c1afe6f26e2b36f51f177af1"] 994 ETag: [W/"714a1ecc456aeb987781ed1a0e93d479"]
994 Transfer-Encoding: [chunked] 995 Transfer-Encoding: [chunked]
995 Vary: ['Accept-Encoding, Origin'] 996 Vary: ['Accept-Encoding, Origin']
996 X-Content-Type-Options: [nosniff] 997 X-Content-Type-Options: [nosniff]
997 X-Frame-Options: [SAMEORIGIN] 998 X-Frame-Options: [SAMEORIGIN]
998 X-Request-Id: [3b466137-a5c6-4809-b659-f73083338c61] 999 X-Request-Id: [51f337a9-0eb6-4f4a-a2ac-802c47176506]
999 X-Runtime: ['0.071875'] 1000 X-Runtime: ['0.255879']
1000 X-XSS-Protection: [1; mode=block] 1001 X-XSS-Protection: [1; mode=block]
1001 content-length: ['1734'] 1002 content-length: ['1915']
1002 status: {code: 200, message: OK} 1003 status: {code: 200, message: OK}
1003- request: 1004- request:
1004 body: null 1005 body: null
1005 headers: 1006 headers:
1006 Accept: ['*/*'] 1007 Accept: ['*/*']
1007 Accept-Encoding: ['gzip, deflate'] 1008 Accept-Encoding: ['gzip, deflate']
1008 Authorization: [Bearer __MASTODON_PY_TEST_TOKEN] 1009 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
1009 Connection: [keep-alive] 1010 Connection: [keep-alive]
1010 Content-Length: ['0'] 1011 Content-Length: ['0']
1011 User-Agent: [python-requests/2.18.4] 1012 User-Agent: [python-requests/2.9.1]
1012 method: DELETE 1013 method: DELETE
1013 uri: http://localhost:3000/api/v1/statuses/99078765698573565 1014 uri: http://localhost:3000/api/v1/statuses/99882188178375346
1014 response: 1015 response:
1015 body: {string: '{}'} 1016 body: {string: '{}'}
1016 headers: 1017 headers:
1017 Cache-Control: ['max-age=0, private, must-revalidate'] 1018 Cache-Control: ['max-age=0, private, must-revalidate']
1018 Content-Type: [application/json; charset=utf-8] 1019 Content-Type: [application/json; charset=utf-8]
1019 ETag: [W/"6c35e00c97505736b22877b8414d02b9"] 1020 ETag: [W/"3f5c56968564b846d401a6eb88033e84"]
1020 Transfer-Encoding: [chunked] 1021 Transfer-Encoding: [chunked]
1021 Vary: ['Accept-Encoding, Origin'] 1022 Vary: ['Accept-Encoding, Origin']
1022 X-Content-Type-Options: [nosniff] 1023 X-Content-Type-Options: [nosniff]
1023 X-Frame-Options: [SAMEORIGIN] 1024 X-Frame-Options: [SAMEORIGIN]
1024 X-Request-Id: [3205e641-b7b2-4e4c-bb69-e6dc2b5c8186] 1025 X-Request-Id: [96cc8af0-151d-48f1-a9d4-96f73952dcd4]
1025 X-Runtime: ['0.018551'] 1026 X-Runtime: ['0.043264']
1026 X-XSS-Protection: [1; mode=block] 1027 X-XSS-Protection: [1; mode=block]
1027 content-length: ['2'] 1028 content-length: ['2']
1028 status: {code: 200, message: OK} 1029 status: {code: 200, message: OK}
Powered by cgit v1.2.3 (git 2.41.0)